package com.tudouji.project.farepay.mapper;

import com.tudouji.project.farepay.domain.FarepayApply;

import java.math.BigDecimal;
import java.util.List;

/**
 * 物流运费付款申请Mapper接口
 *
 * @author tudouji
 * @date 2021-10-27
 */
public interface FarepayApplyMapper
{
    /**
     * 查询物流运费付款申请
     *
     * @param guid 物流运费付款申请ID
     * @return 物流运费付款申请
     */
    public FarepayApply selectFarepayApplyById(String guid);

    /**
     * 查询物流运费付款申请列表
     *
     * @param farepayApply 物流运费付款申请
     * @return 物流运费付款申请集合
     */
    public List<FarepayApply> selectFarepayApplyList(FarepayApply farepayApply);
    public BigDecimal selectFarepayApplyListAmount(FarepayApply farepayApply);

    /**
     * 新增物流运费付款申请
     *
     * @param farepayApply 物流运费付款申请
     * @return 结果
     */
    public int insertFarepayApply(FarepayApply farepayApply);

    /**
     * 修改物流运费付款申请
     *
     * @param farepayApply 物流运费付款申请
     * @return 结果
     */
    public int updateFarepayApply(FarepayApply farepayApply);

    /**
     * 删除物流运费付款申请
     *
     * @param guid 物流运费付款申请ID
     * @return 结果
     */
    public int deleteFarepayApplyById(String guid);

    /**
     * 批量删除物流运费付款申请
     *
     * @param guids 需要删除的数据ID
     * @return 结果
     */
    public int deleteFarepayApplyByIds(String[] guids);

    public Integer checkNotInDetail(String guid);

    public List<FarepayApply> selectFarepayApplyByDep(FarepayApply farepayApply);
    public BigDecimal selectFarepayApplyByDepAmount(FarepayApply farepayApply);

    List<FarepayApply> selectFarepayApplyPendingList(FarepayApply farepayApply);
}
